#include "stdafx.h"

#include <thread>

#include "ClientManager.h"
#include "Constants.h"
#include "Session.h"
#include "HelperFunctions.h"
#include "Task.h"
#include "TCpu.h"
#include "ItemFoundDialog.h"
#include "GuiTaskManager.h"
#include "ItemsModel.h"
#include "TSearcherWindow.h"


#include "clearCookie.h"


void clearCookies(const QVariantMap &arg)
{
    auto session = ClientManager::instance()->newTask("Clear Cookies", arg);

    auto cpu = TCpu::instance();
    //cpu->setOn(session.channel(), Constants::strings.taobaoIndexOpened, &taobaoIndexOpened);
    //cpu->setOn(session.channel(), Constants::strings.searchResultShown, &searchResultShown);
    //cpu->setOn(session.channel(), Constants::strings.itemFound, &searchSubItems_itemFound);

    session.send(Constants::strings.clearCookies);
}